package com.app.miwawa.api.system.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.framework.common.api.entity.CommonEntityUUID;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 系统管理－中心
 * <p>描述: </p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date 2016年1月11日 下午4:44:04
 * @version 1.0.2016
 */
@Entity @Table(name = "TB_SYSTEM_CENTER")
public class Center extends CommonEntityUUID {

	/** serialVersionUID(long):. */
	private static final long serialVersionUID = 8826948643678616062L;

	// 中心类型（加盟、会员、直营等）
	@Column(name = "type", length = 5, nullable = true)
	private String type;
	
	// 中心编码
	@Column(name = "code", length = 50, nullable = true)
	private String code;
	
	// 中心名称
	@Column(name = "name", length = 50, nullable = true)
	private String name;
	
	// 品牌名称
	@Column(name = "brand", length = 50, nullable = true)
	private String brand;
	
	// 负责人手机
	@Column(name = "mobile", length = 50, nullable = true)
	private String mobile;
	
	// 负责人电话
	@Column(name = "director", length = 50, nullable = true)
	private String director;

	// 数据库地址
	@Column(name = "dburl", length = 50, nullable = true)
	private String dburl;
	
	// 数据库名称
	@Column(name = "dbname", length = 50, nullable = true)
	private String dbname;
	
	// 创建时间（注册时间）
	@Temporal(TemporalType.DATE)
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@Column(name = "create_date", nullable = true)
	private Date createDate;
	
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getDirector() {
		return director;
	}

	public void setDirector(String director) {
		this.director = director;
	}

	public String getDburl() {
		return dburl;
	}

	public void setDburl(String dburl) {
		this.dburl = dburl;
	}

	public String getDbname() {
		return dbname;
	}

	public void setDbname(String dbname) {
		this.dbname = dbname;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
}
